<?php

class m120402_211015_create_content_table extends CDbMigration {
	const TABLE_NAME = 'tbl_content';
//------------------------------------------------------------------------
	
	public function safeUp(){
			
		$this->createTable( self::TABLE_NAME, array(
			'id' => 'pk',
			'title' => 'string NOT NULL',
			'slug' => 'string NOT NULL',
			'content' => 'text',
			'author' => 'integer',
			'time_created' => 'timestamp DEFAULT TIMESTAMP \'now\'',
		) );

	}
	

	public function safeDown(){
		$this->dropTable( self::TABLE_NAME );
	}
}
